
#include <stdio.h>
int main()
{
    int i, k = 0;
    char a[80], b[80], * p;
    p = a;
    gets(p);
    while (*p)
    {
        for (i = 1; i%4; p++, k++, i++)  b[k] = *p;
        if (i%4==0) { b[k] = ' ';  k++; }
    }
    b[k] = '\0';
    puts(b);
    return 0;
}
